//search模块小仓库
import {reqGetSearchInfo} from "@/api";
const state = {
    serachList: {}
};
const mutations = {
    GETSEARCHLIST(state,searchList) {
        console.log(typeof searchList);
        console.log(searchList);
        state.searchList = searchList;
    }
};
const actions = {
    async getSearchList({commit},params = {}) {
        let result = await reqGetSearchInfo(params);
        console.log('url',result.url);
        console.log('data',result.data);
        console.log('methods',result.methods);
        if(result.code == 200) {
            commit("CETSEARCHLIST",result.data);

        }
    }
};
const getters = {};

export default {
    state,
    mutations,
    actions,
    getters
}